package com.ryskoo.cms.notice.domain;

import com.ryskoo.framework.core.bean.BasicPO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 *
 * 公告信息表：平台后台发布的公告信息，客户前台展示相应的公告
 * @author renyuting
 * @data 2018-05-03
 */
@Entity
@Table(name = "CMS_NOTICE")
public class NoticePO extends BasicPO {
    /** 公告标题 */
    @Column(name = "notice_title", length = 24)
    private String noticeTitle;

    /** 公告类型Uuid */
    @Column(name = "notice_type_uuid", columnDefinition="character", length = 32)
    private String noticeTypeUuid;

    /** 上下架状态，0下架，1上架 */
    @Column(name = "state", length = 2)
    private String state;

    /** 接收公告客户，0全部客户，1部分客户 */
    @Column(name = "notice_customer", length = 2)
    private String noticeCustomer;

    /** 公告内容 */
    @Column(name = "notice_note", columnDefinition = "TEXT")
    private String noticeNote;

    /** 公告图片 */
    @Column(name = "notice_image", length = 255)
    private String noticeImage;

    /** 排序值 */
    @Column(name = "sort_value", length = 25)
    private String sortValue;
    
    @Transient
    private String noticeTypeName;

    public String getNoticeTitle() {
        return noticeTitle;
    }

    public void setNoticeTitle(String noticeTitle) {
        this.noticeTitle = noticeTitle;
    }

    public String getNoticeTypeUuid() {
        return noticeTypeUuid;
    }

    public void setNoticeTypeUuid(String noticeTypeUuid) {
        this.noticeTypeUuid = noticeTypeUuid;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getNoticeCustomer() {
        return noticeCustomer;
    }

    public void setNoticeCustomer(String noticeCustomer) {
        this.noticeCustomer = noticeCustomer;
    }

    public String getNoticeNote() {
        return noticeNote;
    }

    public void setNoticeNote(String noticeNote) {
        this.noticeNote = noticeNote;
    }

    public String getNoticeImage() {
        return noticeImage;
    }

    public void setNoticeImage(String noticeImage) {
        this.noticeImage = noticeImage;
    }

    public String getSortValue() {
        return sortValue;
    }

    public void setSortValue(String sortValue) {
        this.sortValue = sortValue;
    }

	public String getNoticeTypeName() {
		return noticeTypeName;
	}

	public void setNoticeTypeName(String noticeTypeName) {
		this.noticeTypeName = noticeTypeName;
	}
}
